<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: win
  Date: 2020/10/18
  Time: 15:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>实现choose标签的使用</title>
</head>
<body>
<%--设置一个变量代表考试的成绩并指定数值--%>
<c:set var="score" value="60"></c:set>
<c:out value="${score}"></c:out>

<%--进行多条件判断处理--%>
<c:choose>
    <c:when test="${score>60}">
        <c:out value="成绩不错，继续努力"></c:out>
    </c:when>
    <c:when test="${score==60}">
        <c:out value="60分万岁"></c:out>
    </c:when>
    <c:otherwise>
        <c:out value="可惜~~~"></c:out>
    </c:otherwise>
</c:choose>
</body>
</html>
